package org.micro.neural.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * The Global Config.
 *
 * @author lry
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GlobalConfig implements Serializable {

    private static final long serialVersionUID = 6793855595768022387L;

    /**
     * The switch, default is Switch.ON
     **/
    protected Switch enable = Switch.ON;
    /**
     * The broadcast event, default is Switch.ON
     */
    protected Switch broadcastEvent = Switch.ON;

    /**
     * The cycle pull config(ms)
     */
    protected Long pullConfigCycle = 10 * 1000L;
    
    /**
     * The report cycle of monitor statistics(ms)
     */
    protected Long statisticReportCycle = 10 * 1000L;
    /**
     * The statistic data expire(ms)
     */
    protected Long statisticDataExpire = 3 * 60 * 1000L;

}